package scanner.com.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;


import com.haha.extend.HeadBar.BaseHeaderView;
import com.haha.extend.HeadBar.ImageInLeftAndRight;

import scanner.com.scanner.R;

/**
 * Created by Administrator on 2016/7/15.
 */
public class Tsontd extends AppCompatActivity {
    private ImageInLeftAndRight header;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_decoded);
        findView();
        initView();
    }

    private void findView() {
        header = (ImageInLeftAndRight) findViewById(R.id.header_de);

    }

    private void initView() {
        header.setOnHeaderClickListener(onHeaderClickListener);
    }

    private BaseHeaderView.OnHeaderClickListener onHeaderClickListener = new BaseHeaderView.OnHeaderClickListener() {
        @Override
        public void onHeaderLeftClicked() {
            finish();

        }

        @Override
        public void onHeaderCenterClicked() {

        }

        @Override
        public void onHeaderRightClicked() {
            startActivity(new Intent(Tsontd.this,QRMakeActivity.class));

        }
    };

}
